import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpFeedback {
  id!: number;
  content?: unknown;
  imgList?: unknown;
  contact?: string;
  userId!: number;
  uniacid!: number;
  addTime!: string;
  updateTime!: string;
  deviceType!: number;
}

export const ImsYzdKpFeedbackSchema = new EntitySchema({
  class: ImsYzdKpFeedback,
  properties: {
    id: { primary: true, type: 'number' },
    content: { type: 'unknown', columnType: 'longtext', nullable: true },
    imgList: { type: 'unknown', columnType: 'longtext', nullable: true },
    contact: { type: 'string', length: 255, nullable: true },
    userId: { type: 'number', index: 'user_id' },
    uniacid: { type: 'number', index: 'uniacid' },
    addTime: { type: 'string', length: 255 },
    updateTime: { type: 'string', length: 255 },
    deviceType: { type: 'number', fieldName: 'deviceType', index: 'deviceType' },
  },
});
